﻿
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI.WebControls;
namespace Entities
{
    public sealed class Voter : Person
    {
        public string rut { get; set; }
        public DateTime birthDate { get; set; }
        public string address { get; set; }
        public string smallTown { get; set; }
        public string regionId { get; set; }
        public string communeId { get; set; }
        public string regionCommuneId { get; set; }
        public string password { get; set; }
        public string remoteIP { get; set; }
        public string remotoHost { get; set; }
        public string voucherVotingId { get; set; }
        public bool allowVote { get; set; }
        public string picturePath { get; set; }
        public bool blocked { get; set; }
        public List<Voting> votingList { get; set; }
        public FileUpload voterPicture { get; set; }
        public Register register { get; set; }
        public bool isActive { get; set; }
        public string sex { get; set; }
        public string civilStatus { get; set; }
        public string UserId { get; set; }
        public Group group { get; set; }
        public Voter()
            : base()
        {
            rut = string.Empty;
            birthDate = new DateTime();
            address = string.Empty;
            smallTown = string.Empty;
            password = string.Empty;
            remoteIP = string.Empty;
            remotoHost = string.Empty;
            voucherVotingId = string.Empty;
            allowVote = false;
            blocked = false;
            picturePath = string.Empty;
            regionId = string.Empty;
            votingList = new List<Voting>();
            register = new Register();
            isActive = true;
            sex = string.Empty;
            civilStatus = string.Empty;
            UserId = string.Empty;
            communeId = string.Empty;
            regionCommuneId = string.Empty;
            group=new Group();
        }

    }
}
